package com.yizhaosan.seckill.dto;


/**
 * 暴露秒杀地址DTO
 */
public class Exposer {

    // 是否开启秒杀
    private boolean exposed;

    // 一种加密措施
    private String md5;

    private long seckillId;

    // 系统当前时间(毫秒)
    private long now_Time;

    // 开始时间
    private long start_Time;

    // 结束时间
    private long end_Time;

    @Override
    public String toString() {
        return "Exposer{" +
                "exposed=" + exposed +
                ", md5='" + md5 + '\'' +
                ", seckillId=" + seckillId +
                ", now_Time=" + now_Time +
                ", start_Time=" + start_Time +
                ", end_Time=" + end_Time +
                '}';
    }

    public Exposer(boolean exposed, String md5, long seckillId) {
        this.exposed = exposed;
        this.md5 = md5;
        this.seckillId = seckillId;
    }

    public Exposer(boolean exposed, long seckillId, long now_Time, long start_Time, long end_Time) {
        this.exposed = exposed;
        this.seckillId = seckillId;
        this.now_Time = now_Time;
        this.start_Time = start_Time;
        this.end_Time = end_Time;
    }

    public Exposer(boolean exposed, long seckillId) {
        this.exposed = exposed;
        this.seckillId = seckillId;
    }

    public boolean isExposed() {
        return exposed;
    }

    public void setExposed(boolean exposed) {
        this.exposed = exposed;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public long getSeckillId() {
        return seckillId;
    }

    public void setSeckillId(long seckillId) {
        this.seckillId = seckillId;
    }

    public long getNow_Time() {
        return now_Time;
    }

    public void setNow_Time(long now_Time) {
        this.now_Time = now_Time;
    }

    public long getStart_Time() {
        return start_Time;
    }

    public void setStart_Time(long start_Time) {
        this.start_Time = start_Time;
    }

    public long getEnd_Time() {
        return end_Time;
    }

    public void setEnd_Time(long end_Time) {
        this.end_Time = end_Time;
    }
}
